﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IFDB.Models;
using IFDB.Models.Contexts;
using IFDB.ResourceLibrary;
using IFDB.ViewModels.PageViewModels;
using IFDB.ViewModels.PartialViewModels;

namespace IFDB.Console.Tests.LeagueTable
{
    class Program
    {
        static void Main(string[] args)
        {
            IFDBContext context = new IFDBContext();

            LeagueViewModel leagueTableViewModel = new LeagueViewModel(Country.England, null, null, DateTime.Parse("01/08/2012"), DateTime.Now, 1);

            foreach (LeagueTableItemViewModel item in leagueTableViewModel.LeagueTableViewModel.LeagueTable)
                System.Console.WriteLine(item.Team.TeamNames.First() + " " + item.Points);

            System.Console.WriteLine("\nPress any key to exit.");
            System.Console.ReadKey();
        }
    }
}
